package com.weimengchao.example.controller;

import com.weimengchao.common.constant.ResponseCode;
import com.weimengchao.core.http.RestResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author: 魏孟超
 * @createDate: 2021-10-28 11:12
 */



@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("/get")
    public RestResult permissionList(@RequestParam("ids") List<String> ids) {
        return new RestResult<>(ResponseCode.SUCCEED, ids);
    }

}
